<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Insert title here</title>
</head>
<body>
<% request.setCharacterEncoding("utf-8"); %>
<jsp:useBean id="people" class="MyBean.patient" scope="session"/>
<jsp:setProperty name="people" property="*"/>
<%if (people.isValidate()) { %>
<jsp:forward page="insertPatient"/>
<%} else { %>
<jsp:forward page="applyhospital.jsp"/>
<% }%>
</body>
</html>